import Link from "next/link";
import React from "react";

const links: Array<{ title: string; path: string }> = [
  {
    title: "我的",
    path: "/home/mine",
  },
  {
    title: "todo",
    path: "/home/todo",
  },
];

export default function Links() {
  return (
    <nav className="w-[200px] h-full bg-[skyblue] flex flex-col">
      {links.map((link, index) => (
        <Link href={link.path} key={index}>
          {link.title}
        </Link>
      ))}
    </nav>
  );
}
